package com.beyond.trace.dy.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 品种管理对象 t_trace_dy_breed
 * 
 * @author Mr.Yao
 * @date 2022-04-08
 */
@TableName("t_trace_dy_breed")
public class TraceDyBreed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "breed_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long breedId;

    /** 品种名称 */
    @Excel(name = "品种名称")
    @ApiModelProperty(value = "品种名称")
    private String breedName;

    /** 品种说明 */
    @Excel(name = "品种说明")
    @ApiModelProperty(value = "品种说明")
    private String breedExplain;

    /** 是否删除，1，是 0，否 */
    @Excel(name = "是否删除，1，是 0，否")
    @ApiModelProperty(value = "是否删除，1，是 0，否")
    private Long deleteFlag;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(value = "创建人")
    private String deleteBy;

    /** 修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改日期")
    private Date deleteTime;

    public void setBreedId(Long breedId) 
    {
        this.breedId = breedId;
    }

    public Long getBreedId() 
    {
        return breedId;
    }
    public void setBreedName(String breedName) 
    {
        this.breedName = breedName;
    }

    public String getBreedName() 
    {
        return breedName;
    }
    public void setBreedExplain(String breedExplain) 
    {
        this.breedExplain = breedExplain;
    }

    public String getBreedExplain() 
    {
        return breedExplain;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("breedId", getBreedId())
            .append("breedName", getBreedName())
            .append("breedExplain", getBreedExplain())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
